package com.desire.config;

import com.desire.servlet.LoginServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;

import javax.servlet.Servlet;

/**
 * @author LittleDesire
 * @description
 * @date 2022-04-29 周五 14:49
 * @since 17
 */
//@Configuration
public class ServletConfig {

    @Bean
    public ServletRegistrationBean servletRegistrationBean() {
        ServletRegistrationBean<Servlet> servletServletRegistrationBean = new ServletRegistrationBean<>();
        servletServletRegistrationBean.setServlet(new LoginServlet());
        servletServletRegistrationBean.addUrlMappings("/ll");
        return servletServletRegistrationBean;
    }
}
